//
//  LSTitleSyle.swift
//  LiveShow
//
//  Created by dai zhong on 2017/4/27.
//  Copyright © 2017年 company.cn. All rights reserved.
//

import UIKit

class LSTitleSyle :NSObject{

    // scrollView的一些属性
    var isScrollEnable:Bool = true;
    var height :CGFloat = 30.0;
    var edgeInsets:UIEdgeInsets = UIEdgeInsets(top: 0, left: 5, bottom: 0, right: 5);
    var margin :CGFloat = 10.0;
    
    // Label的一些属性
    var normalColor : UIColor = UIColor.black;
    var selectedColor : UIColor = UIColor.red;
    var font :UIFont = UIFont.systemFont(ofSize: 14);
    var titleMargin :CGFloat = 10.0;
    var titleColor:UIColor = UIColor.black;
    
    // 选中Title字体大小缩放
    var isNeedScale:Bool = true;
    var scaleRange :CGFloat = 1.0;
    
    // 设置底部分割线
    var isShowBottomLine :Bool = false;
    var splitLineBgColor :UIColor = UIColor.gray;
    var splitLineHeight :CGFloat = 0.5;
    
    // 设置底部滑动条
    var bottomLineColor:UIColor = UIColor.orange;
    var bottomLineH :CGFloat = 1.0;
    
    // 是否需要显示的coverView
    var isShowCover :Bool = false;
    var coverBgColor :UIColor = UIColor.black;
    var coverH :CGFloat = 20.0;
    var coverMargin :CGFloat = 4.0;
    var coverRadius :CGFloat = 5.0;
    var coverAlpha :CGFloat = 0.3;
}

extension LSTitleSyle{

    public func setTitleColor(_ color: UIColor?, for state: UIControlState){
        
        self.titleColor = color!;
    };
}
